package com.lx.utils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.lx.beans.Goods;
import com.lx.service.impl.GoodsService;

public class MyTask {

	@Autowired
	private GoodsService gService;

	public void doTask() {
		System.err.println("生成静态页面");
		List<Goods> gList = gService.findGoods();
		Map<String, Object> map = new HashMap<>();
		map.put("gList", gList);
		FRUtil.createPageByWebRoot("glist.ftl", map, "glist.html");
	}
}
